﻿using Harmontronics.Model.Dto.Login;
using Harmontronics.Model.Dto.Menu;
using Harmontronics.Model.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Harmontronics.IService
{
    /// <summary>
    /// 菜单模块接口
    /// </summary>
    public interface IMenuService
    {
        /// <summary>
        /// 获取列表
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        List<DynamicRoutes> GetMenusByEmployeeNumber(int userId);
        Menu GetMenuById(int id);
        List<DynamicRoutes> GetAllMenus();
        List<ShowDynamicRoutes> GetAllMenus(MenuGet getData);
        List<ShowDynamicRoutes> GetAllAbleMenus();
        List<ShowDynamicRoutes> GetAllMenusByRoleId(int roleId);
        List<int> CollectMenuIds(List<int> ids, List<ShowDynamicRoutes> shows);
        bool AddMenu(MenuAdd menuAdd);
        bool UpdateMenu(MenuEdit menuEdit);
        bool DeleteMenuById(int id);
        bool BatchDelMenu(List<int> ids);
    }
}
